package org.yaonan.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.yaonan.bean.YnUser;
import org.yaonan.bean.YnUserExample;

public interface YnUserMapper {
    int countByExample(YnUserExample example);

    int deleteByExample(YnUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(YnUser record);

    int insertSelective(YnUser record);

    List<YnUser> selectByExample(YnUserExample example);

    YnUser selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") YnUser record, @Param("example") YnUserExample example);

    int updateByExample(@Param("record") YnUser record, @Param("example") YnUserExample example);

    int updateByPrimaryKeySelective(YnUser record);

    int updateByPrimaryKey(YnUser record);
    
    int selectUsername(String username);
    YnUser selectUser(String username,String password);
}